package com.kun.video.ui;

import com.kun.video.context.ContextService;
import com.kun.video.thread.ComThreadPool;
import javafx.scene.Parent;
import javafx.scene.layout.StackPane;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 示例代码
 *
 * @author gzc
 * @since 2025/3/20
 **/
public final class SampleView extends StackPane implements KunComponent {
    private static final Logger log = LoggerFactory.getLogger(SampleView.class);
    private static final String CSS_CLASS = "sample-view";

    private ComThreadPool comThreadPool;

    public SampleView() {
        initialize();
    }

    @Override
    public Parent getNode() {
        return this;
    }

    @Override
    public String getStyleName() {
        return CSS_CLASS;
    }

    @Override
    public void initStyleClass() {
        KunComponent.super.initStyleClass();
    }

    @Override
    public void initLayout() {
    }

    @Override
    public void initStyle() {
    }

    @Override
    public void initDimensions() {
    }

    @Override
    public void reactiveDimensions(double width, double height) {
    }

    @Override
    public void initListeners() {
    }

    @Override
    public void dispose() {
    }

    @Override
    public void initData() {
        comThreadPool = ContextService.getBean(ComThreadPool.class);
    }

}
